﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DocumentService;
using NGS.Templater;

namespace Sandbox
{
    public class Program
    {
        public static string[] fields = { "cover_image",
                                   "cover_title",
                                   "cover_creationdate",
                                   "cover_customernr",
                                   "cover_projectname",
                                   "cover_fullname",
                                   "cover_address",
                                   "cover_zip",
                                   "cover_logo"
                                 };

        static void Main(string[] args)
        {
            var doc = new DocumentService.DocumentService(@"Documents\installer.docx");
            //doc.AccessImage("Cover_Image", @"Documents\cover_default.png");
            doc.TextToField(fields[1], "Lol hvad er den af?");

            int count = 0;
            foreach (var field in fields)
            {
                if (doc.VerifyField(field))
                {
                    count++;
                }
            }
        }
    }
}
